package com.rxt.controller;


import com.rxt.common.result.Result;
import com.rxt.model.vo.KKonwledgeVo;
import com.rxt.model.vo.QAnswerVo;
import com.rxt.service.IQAnswerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 周梓文
 * @since 2023-08-24
 */
@Api(tags = "回答模块")
@RestController
@RequestMapping("/qAnswer")
public class QAnswerController {

    @Autowired
    private IQAnswerService iqAnswerService;

    @PostMapping("/answer")
    @ApiOperation("回答问题")
    public Result publish(@RequestBody QAnswerVo qAnswerVo){

        return iqAnswerService.answer(qAnswerVo);
    }

}

